package com.waitingresult.zuo.sort;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-11-08  09:13
 * @Description:
 * @Version: 1.0
 */
public class SortUtils {
    public static void swap(int[] arr, int i, int k) {
        int temp = arr[k];
        arr[k] = arr[i];
        arr[i] = temp;
    }

    public static void print(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            System.err.print(arr[i] + " ");
        }
        System.err.println();
    }
}
